/*
 * 广州丰石科技有限公司拥有本软件版权2020并保留所有权利。
 * Copyright 2020, Guangzhou Rich Stone Data Technologies Company Limited,
 * All rights reserved.
 */
package demo.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <b><code>BaseEntity</code></b>
 * <p/>
 * Description
 * <p/>
 * <b>Creation Time:</b> 2020/12/28 6:00 下午.
 *
 * @author wyfd
 * @since rziomp-be 1.0.0
 */
@Data
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 创建时间
     */
    @TableField(value = "created_time",fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("创建时间")
    @ExcelIgnore
    private Date createdTime;
    /**
     * 更新时间
     */
    @TableField(value = "updated_time",fill = FieldFill.INSERT_UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("更新时间")
    @ExcelIgnore
    private Date updatedTime;

    /**
     * 更新者
     */
    @ApiModelProperty("更新者")
    @ExcelIgnore
    @TableField(value = "updated_user_id",fill = FieldFill.INSERT_UPDATE)
    private Long updatedUserId;

    /**
     * 创建者
     */
    @ApiModelProperty("创建者")
    @ExcelIgnore
    @TableField(value = "created_user_id",fill = FieldFill.INSERT)
    private Long createdUserId;

    /**
     * 数据状态
     */
    @ApiModelProperty("数据状态")
    @ExcelIgnore
    @TableField(value = "status",fill = FieldFill.INSERT)
    private String status;



}
